package test.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by genghz on 17/7/5.
 */
@RefreshScope
@RestController
public class UpdateConfigConfig {

    @Value("${testUpd}")
    private String testUpd;

    @RequestMapping("/testUpd")
    public String from() {
        return this.testUpd;
    }

    public String getRedis() {
        return testUpd;
    }

    public void setRedis(String testUpd) {
        this.testUpd = testUpd;
    }
}
